package com.foreknow.oppExer1.exer6;

/**
 * @author shkstart
 * @create 2021-07-28 14:15
 */
public class E {
    public static void main(String[] args) {
        Circle circle=new Circle(5);
        System.out.println("圆形的半径为"+circle.getRadius()+"圆形的面积为"+circle.getArea());
        Rect rect=new Rect();
        rect.setA(2);
        rect.setB(5);
        System.out.println("矩形的面积"+rect.getArea());

    }
}
